<%@page import="java.util.*"%>
<%@page import="java.text.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
    String path = request.getContextPath(); 
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+path+ "/"; 
%>
<!DOCTYPE HTML>
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<title>版本更新管理</title>
	<link rel="stylesheet" href="plugin/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/bootstrap-datetimepicker.css" />
    <link rel="stylesheet" href="plugin/bootstrap-table/dist/bootstrap-table.css">
<style type="text/css">
 
  .addbr{
     float: right;
    margin-right: 80px;
  }
  .pad{
    padding-left:15px;
    padding-top:10px;
  }
  .im{
     padding:10px;
  }
  .padtr{
      margin-top:5px;
  }
  #filediv{
  border: 2px solid #ccc6c6;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    display: inline-block;
    margin-right: 20px;
  }

.btn1{
    margin-top: 10px;
}
.arrow{
          width: 20px;
          height: 20px;
}
</style>

</head>
<body>
    <div class="row base-margin" id="query">
        <ul class="breadcrumb">
       
				<li style="padding-left: 15px"><i class="icon-home home-icon"></i> <a href="javascript:void(0)">System Settings(系统设置)</a>
				</li>
				<li class="active">
				<a href="view/sys/version_update.jsp">Version update(版本更新)</a></li>
        </ul>
        <form class="form-inline" role="form" style="float: left; width: 100%" method="post" id="queryForm">
            <div class="form-group">
              <a id="queryBtn" href="view/sys/addVersion.jsp" class="btn btn-primary">Add(添加)
                </a>
            </div> 
        </form>
    </div>
    <div class="container" style="width: 100%;margin-top:15px">
        <table id="demo-table">
        </table>
    </div>
</body>
	<!-- 加载需要的js -->
	<script src="js/jquery-3.2.1.min.js"></script>
	<script src="plugin/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
	<script src="js/jquery-bootstrap-pagination.js"></script>
	<script src="plugin/bootstrap-table/dist/bootstrap-table.min.js"></script>
	<script src="plugin/bootstrap-table/dist/locale/bootstrap-table-zh-CN.min.js"></script>
	<script src="js/common.js"></script>
	<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script type="text/javascript" charset="utf-8">

	$(function () {
		initPath("<%=basePath%>");
	    initTable('demo-table',queryParams,columns,"edition/getList");
	});
var  columns= [ { field: '', title: 'Serial Number(序号)', checkbox:true },
	 { field : 'name',  title : 'Name(版本名称)',  align : 'center', valign : 'middle' },
     { field : 'version', title : 'Version(版本号)', align : 'center', valign : 'middle' },
     { field : 'versionIntroduction',  title : 'Version Introduction(版本说明)',  align : 'center', valign : 'middle' },
     { field : 'androidUrl',  title : 'URL(版本路径)',  align : 'center', valign : 'middle' }
     ];//自定义方法，添加操作按钮 
	
	function queryParams(params) {
		 console.log(params);  
	    var param = {
	        pageNumber : this.pageNumber,
	        pageSize : this.pageSize
	    }	
	    return param;
	} 
	function queryParams1(params) {
		 console.log(params);  
	    var param = {
	        pageNumber : this.pageNumber,
	        pageSize : this.pageSize
	    }	
	    return param;
	}
		
		function add(){
			 window.location.href="/view/sys/addVersion.jsp";
		}
	 
	</script>
</html>


